package com.itheima.stock.config;

import com.google.common.util.concurrent.RateLimiter;
import org.springframework.context.annotation.Configuration;


@Configuration
@SuppressWarnings("all")
public class RateLimiterConfiguration {
    public RateLimiter redisTemplate() {
        return RateLimiter.create(1);

    }
}
